package com.txsj.scan.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;

import java.util.List;

/**
 * 从服务器获取到的商品数据缓存到数据库
 */

@Entity
public class EpcGoodsInfo {

    /**
     * goods_id : 2332
     * goods_name : 力士滋养柔肤娇肤香皂115gX3 115g*3
     * origin_price : 0.01
     * goods_price : 0.01
     * gs1_num: 2320000000000000000
     * goods_img: "http://img.txooo.com/2015/04/30/46295d1694bd67cfd101731717a7e129.jpg",
     */

    @Unique
    private long goods_id;
    private String goods_name;
    private double origin_price;
    private double goods_price;
    private Long gs1_num;
    private String goods_img;
    @Transient
    private long count;//商品数量（本地）
    @Transient
    private long inventory_keep;//系统商品数量（本地）服务器返回的，用于和本地对比
    @Transient
    private List<String> strEPCList;//Epc本地标签，调拨提交时需要

    @Generated(hash = 537318537)
    public EpcGoodsInfo(long goods_id, String goods_name, double origin_price,
            double goods_price, Long gs1_num, String goods_img) {
        this.goods_id = goods_id;
        this.goods_name = goods_name;
        this.origin_price = origin_price;
        this.goods_price = goods_price;
        this.gs1_num = gs1_num;
        this.goods_img = goods_img;
    }

    @Generated(hash = 1379011922)
    public EpcGoodsInfo() {
    }

    public List<String> getStrEPCList() {
        return strEPCList;
    }

    public void setStrEPCList(List<String> strEPCList) {
        this.strEPCList = strEPCList;
    }

    public long getInventory_keep() {
        return inventory_keep;
    }

    public void setInventory_keep(long inventory_keep) {
        this.inventory_keep = inventory_keep;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public long getGoods_id() {
        return this.goods_id;
    }

    public void setGoods_id(long goods_id) {
        this.goods_id = goods_id;
    }

    public String getGoods_name() {
        return this.goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public double getOrigin_price() {
        return this.origin_price;
    }

    public void setOrigin_price(double origin_price) {
        this.origin_price = origin_price;
    }

    public double getGoods_price() {
        return this.goods_price;
    }

    public void setGoods_price(double goods_price) {
        this.goods_price = goods_price;
    }

    public Long getGs1_num() {
        return this.gs1_num;
    }

    public void setGs1_num(Long gs1_num) {
        this.gs1_num = gs1_num;
    }

    public String getGoods_img() {
        return this.goods_img;
    }

    public void setGoods_img(String goods_img) {
        this.goods_img = goods_img;
    }
}
